#include <csignal>
#include <iostream>
#include <algorithm>
#include <cmath>
using namespace std;

int main() {

    double a,b,c;
    while(cin>>a>>b>>c){
        
        double delta=b*b-4*a*c;
        if(a==0){
            printf("Not quadratic equation\n");
        }
        else if(delta==0){
            double x=(-b)/(2*a);
            if(x==-0){
                x=0;
            }
            printf("x1=x2=%.2lf\n",x);
        }
        else if(delta>0){
            double x1=(-b-sqrt(delta))/(2*a);
            double x2=(-b+sqrt(delta))/(2*a);
            printf("x1=%.2lf;x2=%.2lf\n",x1,x2);
        }
        else{
            double x1=-b/(2*a),x2=sqrt(-delta)/(2*a);
            printf("x1=%.2lf-%.2lfi;x2=%.2lf+%.2lfi\n",x1,x2,x1,x2);
        }
    }

    return 0;
}
